<link rel="stylesheet" href="<%- Virtual_Path.Static %>main/css/agreement.css"/>
<div class="newRecruit">
    <div class="Recruit">
        <a href="javascript:;" id="anchor" class="anchor_join"></a>
        <a href="javascript:;" id="family" class="family_join"></a>
    </div>
</div>
<script>
    $(function () {
        $("#anchor").bind('click',function(){
            if(!_StateData.IsLogin){
                $.CommonMain.Login('In');
                return true;
            }
            if(_StateData.IsAnchor){
                $.KOC.Tips.Open('Error', '你已经申请了艺人，无需申请了', {
                    Timeout: 1000,
                    onClose: function () {
                        location.href = "/";
                    }
                });
            }
            if(_PageData.flag==2){
                $.KOC.Tips.Open('Error', _PageData.message, {
                    Timeout: 2000,
                    onClose: function () {
                        location.href = "/";
                    }
                });
            }
            location.href ='/entry/anchor';
        });
        $("#family").bind('click',function(){
            if(!_StateData.IsLogin){
                $.CommonMain.Login('In');
                return true;
            }
//            if(_StateData.IsFamily){
//                $.KOC.Tips.Open('Error', '你已经申请了公会，无需申请了', {
//                    Timeout: 1000,
//                    onClose: function () {
//                        location.href = "/index";
//                    }
//                });
//            }
//            if(_PageData.flag==2){
//                $.KOC.Tips.Open('Error', _PageData.message, {
//                    Timeout: 2000,
//                    onClose: function () {
//                        location.href = "/index";
//                    }
//                });
//            }
            location.href ='/entry/family';
        });
    })
</script>